package org.example.springboot.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
@lombok.Data
@AllArgsConstructor
@NoArgsConstructor
public class Suppliers {


    private int id;

    /** 供应商名称 */
    @TableField("supplier_name") // 映射数据库列名
    private String supplierName;

    /** 地址 */
    @TableField("address")
    private String address;

    /** 官网*/
    @TableField("website")
    private String website;

    /** 经营状态*/
    @TableField("status")
    private String status;

    /** 开户银行 */
    @TableField("bank_name")
    private String bankName;

    /** 银行账号 */
    @TableField("bank_account")
    private String bankAccount;

    /** 联系人*/
    @TableField("contact_person")
    private String contactPerson;

    /** 联系电话 */
    @TableField("contact_phone")
    private String contactPhone;

    /** 供应商描述 */
    @TableField("description")
    private String description;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    @TableField("create_time")
    private LocalDateTime createTime;


}
